home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / futils / futils~1 / src / shell13s.zoo / shell1.3 / lib / Makefile < prev    next >
Encoding:
Makefile  |  1991-10-20  |  2.1 KB  |  80 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Makefile for library files used by GNU shell utilities.
  3. # Do not use this makefile directly, but only from `../Makefile'.
  4. # Copyright (C) 1991 Free Software Foundation, Inc.
  5.  
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2, or (at your option)
  9. # any later version.
  10.  
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. # GNU General Public License for more details.
  15.  
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program; if not, write to the Free Software
  18. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  
  20.  
  21. srcdir = ./lib
  22.  
  23.  
  24. SOURCES = basename.c error.c stripslash.c xmalloc.c xstrdup.c xwrite.c \
  25.  getopt.c getopt1.c getugroups.c regex.c getdate.y posixtm.y \
  26. mktime.c stime.c strftime.c strstr.c alloca.c
  27.  
  28. OBJECTS = basename.o error.o stripslash.o xmalloc.o xstrdup.o xwrite.o \
  29.  getopt.o getopt1.o getugroups.o regex.o getdate.o posixtm.o
  30.  
  31.  
  32. DISTFILES = Makefile.in getopt.h regex.h $(SOURCES)
  33.  
  34. all: libshu.a
  35. .PHONY: all
  36.  
  37. install: all
  38. .PHONY: install
  39.  
  40. tags: $(SOURCES)
  41.     ctags $(SOURCES)
  42.  
  43. TAGS: $(SOURCES)
  44.     etags $(SOURCES)
  45.  
  46. clean:
  47.     rm -f *.a *.o
  48. .PHONY: clean
  49.  
  50. distclean: clean
  51.     rm -f tags TAGS Makefile *.tab.c getdate.c *posixtm.c
  52. .PHONY: distclean
  53.  
  54. realclean: distclean
  55. .PHONY: realclean
  56.  
  57. dist:
  58.     ln $(DISTFILES) ../`cat ../.fname`/lib
  59. .PHONY: dist
  60.  
  61. libshu.a: $(OBJECTS)
  62.     $(AR) cr $@ $(OBJECTS)
  63.     -$(RANLIB) $@
  64.  
  65. getdate.c: getdate.y
  66.     @echo expect 8 shift/reduce conflicts
  67.     -bison -o getdate.c $< || yacc $<
  68.     test ! -f y.tab.c || mv y.tab.c getdate.c
  69.  
  70. # Make the rename atomic, in case sed is interrupted and later rerun.
  71. posixtm.c: posixtm.y
  72.     -bison -o posixtm.tab.c $< || yacc $<
  73.     test ! -f y.tab.c || mv y.tab.c posixtm.tab.c
  74.     sed -e 's/yy/zz/g' posixtm.tab.c > tposixtm.c
  75.     mv tposixtm.c posixtm.c
  76.     rm -f posixtm.tab.c
  77.  
  78. getopt1.o: getopt.h
  79. regex.o: regex.h
  80.